/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package phd.changeidentifiers.testing.display.database;

import phd.dupenois.changeidentifiers.dotpatterns.DotPattern;
import phd.dupenois.changeidentifiers.engine.testing.TimeStep;

/**
 *
 * @author Max
 */
public class TimeStepWithFootprintDifferences extends TimeStep{
    private double symmetricAreaDifference;
    private TimeStepWithFootprintDifferences(long started, DotPattern dotPattern){
        super(started, dotPattern);
    }

    public static TimeStepWithFootprintDifferences getTimeStep(TimeStep step){
        TimeStepWithFootprintDifferences timeStepWithDiff = new
                TimeStepWithFootprintDifferences(step.getStarted(), step.getDotPattern());
        timeStepWithDiff.setAlgStarted(step.getAlgStarted());
        timeStepWithDiff.setAlgTimeTaken(step.getAlgTimeTaken());
        timeStepWithDiff.setChangeIdentifierSetSnapshot(step.getChangeIdentifierSetSnapshot());
        timeStepWithDiff.setFootprint(step.getFootprint());
        timeStepWithDiff.setRedraw(step.isRedraw());
        timeStepWithDiff.setTimeTaken(step.getTimeTaken());
        return timeStepWithDiff;
    }

    /**
     * @return the symmetricAreaDifference
     */
    public double getSymmetricAreaDifference() {
        return symmetricAreaDifference;
    }

    /**
     * @param symmetricAreaDifference the symmetricAreaDifference to set
     */
    public void setSymmetricAreaDifference(double symmetricAreaDifference) {
        this.symmetricAreaDifference = symmetricAreaDifference;
    }
}
